class Info {
  constructor (ctx) {
    this.ctx = ctx
  }
  showScore (score) {
    this.ctx.font = '20px 微软雅黑'
    this.ctx.fillStyle = 'white'
    let scoreinfo = '当前分数:' + score
    this.ctx.fillText(scoreinfo, 10, 30)
  }
}
export default Info